import * as actionTypes from './actionTypes';
import { fromJS } from 'immutable'
const defaultState = fromJS({
    login: false
});

export default (state = defaultState, action) => {
    switch (action.type){
        case actionTypes.CHANGE_LOGIN_STATUS:
            return state.set('login', fromJS(true));
        default:
            return state;
    }
}